package com.tjtt.tdm.system.dao;
import com.tjtt.tdm.base.EntityDAO;
import com.tjtt.tdm.exception.DaoException;
import com.tjtt.tdm.system.bean.UserRole;
/**
 * 用户角色DAO
 * @author cm
 *
 */
public interface UserRoleDao extends EntityDAO<UserRole>{

    /**
     * 删除用户角色关联
     * @param roleId
     * @throws DaoException
     */	
	public void delUserRoleByRoleId(Long roleId) throws DaoException;
	/**
	 * 给角色分配人员
	 * @param userRole
	 * @return
	 * @throws DaoException 
	 */
	public void savaUserToRole(UserRole userRole) throws DaoException;
	
	public void delUserRole(Long userId) throws DaoException;
}
